package com.xuecheng.basic.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 课程分类
 * </p>
 *
 * @author itheima
 * @since 2022-07-16
 */
@Getter
@Setter
@TableName("tb_category")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;
    //主键
    @TableId(value = "id", type = IdType.AUTO)
    private String id;
    //分类名称
    private String name;
     // 分类标签默认和名称一样
    private String label;
    // 父结点id（第一级的父节点是0，自关联字段id）
    private String parentid;
    //是否显示
    private Integer isShow;
    //排序字段
    private Integer orderby;
    //是否叶子
    private Integer isLeaf;


}
